import React from 'react';
import { observer } from 'mobx-react-lite';
import PublicAlert from '@/components/alert';
import appStore from '@/store/app';

const Alert = observer(() => {
    return (
        <PublicAlert
            alertStatus={appStore.alertStatus}
            alertTip={appStore.alertTip}
            closeAlert={() => appStore.hideAlert()}
        />
    );
});

export default Alert;
